import VXETable from "vxe-table";
import TableImage from "../components/TableImage";

VXETable.renderer.add('TableImage', {
    // 默认显示模板
    renderDefault (h, renderOpts, params) {
        const { row, column } = params;
        const { attrs, isArray, showIndex } = renderOpts;
        return [
            h(TableImage, {
                attrs,
                props: {
                    params: {
                        row, column
                    },
                    isArray,
                    showIndex
                },
            })
        ];
    }
});
